package com.fasteat.mall.quartz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 定时器启动类
 */
@Component
public class StartupQuartz implements CommandLineRunner {

	@Autowired
	private QuartzManager manager;

	@Override
	public void run(String... args) throws Exception {
		manager.statup();
	}
}
